Skip to content

fix(deps): update module github.com/hashicorp/copywrite to v0.25.3#434

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-hashicorp-copywrite-0.x
Open

fix(deps): update module github.com/hashicorp/copywrite to v0.25.3#434
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-hashicorp-copywrite-0.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Mar 3, 2026

This PR contains the following updates:

Package Change Age Confidence
github.com/hashicorp/copywrite v0.24.2v0.25.3 age confidence

Release Notes

hashicorp/copywrite (github.com/hashicorp/copywrite)

v0.25.3

Compare Source

v0.25.3

Bug Fixes
  • LICENSE no longer updated on every run (#​224)
    anyFileUpdated was unconditionally set to true in non-plan mode due
    to a buggy condition, causing the LICENSE file's copyright year to
    be bumped on every successful run — even when all source file headers were
    already correct. This triggered spurious pre-commit hook failures with
    "files were modified by this hook" when nothing should have changed.
    addlicense.Run now correctly reports whether it actually wrote any files,
    and the LICENSE update is gated on that signal.

  • Ignored directories are now skipped in a single step (#​225)
    Patterns in header_ignore (e.g. .venv/**, vendor/**) were previously
    only checked against files — the walk still descended into every directory
    unconditionally, visiting each file before discarding it. For directories
    with thousands of files this caused significant slowdowns. The walk now
    checks each directory against ignore patterns and returns filepath.SkipDir
    immediately, pruning the entire subtree regardless of how many files are
    inside.

Full Changelog

v0.25.2

Compare Source

What's Changed

New Features
  • ignore_year1 config option (#​213): Added a new project.ignore_year1 boolean flag in .copywrite.hcl. When set to true, the tool skips updating the start year in existing copyright headers, preserving historically accurate start years (e.g. 2015) even when they differ from copyright_year in config. End-year logic is unaffected — files modified after their copyright end year still get the end year bumped to current year. New files with no copyright header are also unaffected and always receive the config year as the start year.

    project {
      copyright_year = 2024
    
      # Preserve original start years in existing headers
      ignore_year1 = true
    }
Bug Fixes
  • Removed unused ignore_year2 references from config, CLI, init template, and README.
Documentation
  • README updated with ignore_year1 behaviour for both source file headers and LICENSE files.
  • Init template updated to include ignore_year1 as a commented-out option.

v0.25.1

Compare Source

Fixed

  • Fixed copyright year updates not being applied due to invalid git log format in the year update cache (#​191 regression)
  • Fixed symlink resolution issue on macOS causing cache misses for file copyright year lookups
  • Improved git information caching reliability and accuracy

Details

This release fixes two critical bugs introduced in v0.25.0 (#​191):

  1. The buildRepositoryCache now correctly formats git output with __CW_YEAR__= prefix, allowing the parser to properly identify years vs filenames
  2. Symlink paths are now resolved before computing relative paths, preventing cache misses on systems where /tmp is a symlink (macOS)

Users running v0.25.0 who noticed copyright year updates weren't working should upgrade to this version.

v0.25.0

Compare Source

Improvements

  • Major Performance Optimizations (#​191): Significantly improved performance by caching git repository information and reducing redundant lookups during header processing
  • Auto-Migration from HashiCorp to IBM (#​189): Added automatic detection and migration of HashiCorp copyright holders to IBM format, supporting all comment styles and preserving year information

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented Mar 3, 2026

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 12 additional dependencies were updated

Details:

Package Change
github.com/bmatcuk/doublestar/v4 v4.6.0 -> v4.10.0
github.com/bradleyfalzon/ghinstallation/v2 v2.5.0 -> v2.18.0
github.com/cli/go-gh/v2 v2.12.2 -> v2.13.0
github.com/fsnotify/fsnotify v1.6.0 -> v1.9.0
github.com/google/go-querystring v1.1.0 -> v1.2.0
github.com/hashicorp/go-hclog v1.5.0 -> v1.6.3
github.com/jedib0t/go-pretty/v6 v6.6.8 -> v6.7.9
github.com/joho/godotenv v1.3.0 -> v1.5.1
github.com/mergestat/timediff v0.0.3 -> v0.0.4
github.com/samber/lo v1.51.0 -> v1.53.0
github.com/thanhpk/randstr v1.0.4 -> v1.0.6
golang.org/x/oauth2 v0.30.0 -> v0.36.0

@renovate renovate Bot requested a review from RoseSecurity as a code owner March 3, 2026 08:44
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@renovate renovate Bot force-pushed the renovate/github.com-hashicorp-copywrite-0.x branch 10 times, most recently from 2588524 to ba1c308 Compare March 6, 2026 13:34
@renovate renovate Bot force-pushed the renovate/github.com-hashicorp-copywrite-0.x branch 4 times, most recently from d873af9 to 293dc78 Compare March 16, 2026 14:01
@renovate renovate Bot force-pushed the renovate/github.com-hashicorp-copywrite-0.x branch 5 times, most recently from 111a0d2 to cab5744 Compare March 23, 2026 13:11
@renovate renovate Bot changed the title fix(deps): update module github.com/hashicorp/copywrite to v0.25.1 fix(deps): update module github.com/hashicorp/copywrite to v0.25.2 Mar 24, 2026
@renovate renovate Bot force-pushed the renovate/github.com-hashicorp-copywrite-0.x branch 3 times, most recently from fa7629a to 9cb739f Compare March 27, 2026 18:47
@renovate renovate Bot force-pushed the renovate/github.com-hashicorp-copywrite-0.x branch 4 times, most recently from 7a1e542 to 11d66dc Compare April 2, 2026 15:09
@renovate renovate Bot force-pushed the renovate/github.com-hashicorp-copywrite-0.x branch 2 times, most recently from 1f0ff7a to c2c9622 Compare April 8, 2026 18:17
@renovate renovate Bot force-pushed the renovate/github.com-hashicorp-copywrite-0.x branch 7 times, most recently from 724817e to b074fc0 Compare April 16, 2026 13:35
@renovate renovate Bot force-pushed the renovate/github.com-hashicorp-copywrite-0.x branch 4 times, most recently from ffdd5d4 to ac52e16 Compare April 24, 2026 18:12
@renovate renovate Bot force-pushed the renovate/github.com-hashicorp-copywrite-0.x branch 5 times, most recently from ceba4fe to 35dc86a Compare April 29, 2026 14:39
@renovate renovate Bot changed the title fix(deps): update module github.com/hashicorp/copywrite to v0.25.2 fix(deps): update module github.com/hashicorp/copywrite to v0.25.3 Apr 29, 2026
@renovate renovate Bot force-pushed the renovate/github.com-hashicorp-copywrite-0.x branch 5 times, most recently from 9e15ebc to 7505f5d Compare May 6, 2026 01:43
@renovate renovate Bot force-pushed the renovate/github.com-hashicorp-copywrite-0.x branch from 7505f5d to 7f92b7b Compare May 12, 2026 12:28
@renovate renovate Bot force-pushed the renovate/github.com-hashicorp-copywrite-0.x branch from 7f92b7b to 25eb040 Compare May 14, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant